package com.xuanyuanxinyu.utils.file

/**
 * @FileName:
 * @Description:
 * @author ken.luo
 * @date 2023/4/4
 * @version V1.0
 * @email 424533553@qq.com
 */
data class ContentFile(val path : String,val displayName : String,val title : String,var author : String?){
    
    constructor(path : String,displayName : String,title : String) : this(path,displayName,title,author = "SMART")
    override fun equals(other : Any?) : Boolean {
        if (this === other) return true
        if (javaClass != other?.javaClass) return false
        
        other as ContentFile
        
        if (path != other.path) return false
        if (displayName != other.displayName) return false
        
        return true
    }
    
    override fun hashCode() : Int {
        var result = path.hashCode()
        result = 31 * result + displayName.hashCode()
        return result
    }
    
}